<!--
Has the following blocks
    BaseBrowserTitle - appears in the browser heading
    BaseHead - base <head></head> additions
    BasePageMenu - page additional menu items
    BasePageTitleRight - right justified content of page title line
    BasePageTitle - left justified content of page title line
    BaseBody - body of the page
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%">
<head>
    <title>{% block BaseBrowserTitle %}great-loop{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="description" content="Implement a geo wiki in support of the great loop." />
    <meta name="keywords" content="geowiki,yui,tinymce,great loop" />
    <meta name="copyright" content="Richard J Bell" />
    <meta name="robots" content="index,follow" />
    
    <!-- YUI loader to keep YUI CSS and JS things simplier --> 
    <!--<script src="http://www.google.com/jsapi" type="text/javascript" charset="utf-8"></script>-->
    <!--<script type="text/javascript" charset="utf-8">-->
        <!--google.load('yui', '2.6.0');-->
        <!--var loader = new YAHOO.util.YUILoader({-->
            <!--require: ["base", "container", "dom", "dragdrop", "event", "logger", "reset", "yahoo" ],-->
            <!--base: "http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/",-->
            <!--loadOptional: true,-->
            <!--timeout: 10000,-->
            <!--combine:true-->
            <!--onSuccess: function() {-->
                <!--// start playing with components or wait for onload event!-->
            <!--}-->
        <!--});-->
        <!--loader.insert();-->
    <!--</script>-->

    <!-- YUI CSS to improve browser independence -->
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/reset-fonts-grids/reset-fonts-grids.css">
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/base/base-min.css">
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/container/assets/skins/sam/container.css"> 
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/logger/assets/skins/sam/logger.css"> 
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/resize/assets/skins/sam/resize.css"> 
    
    <!-- YUI JS files --> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/container/container-min.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/logger/logger-min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/dragdrop/dragdrop-min.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/element/element-beta-min.js"></script> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/resize/resize-min.js"></script> 

    <!-- our CSS --> 
    <link rel="stylesheet" type="text/css" href="/static/css/base.css" media="all"/>
    
    <!-- geowiki scripts -->
    <script type="text/javascript" src="/static/js/gwcommon.js" ></script>
    <script type="text/javascript">
        <!-- This needs to be here and not in gwcommon.js since it uses Django templates -->
        {% if user %}
            var current_user = '{{ user.nickname }}';
            var is_admin = '{{ admin }}';
        {% endif %}
    </script>

    <!-- page specific scripts --> 
    {% block BaseHead %}<!-- page specific header scripts go here -->{% endblock %}
    
</head>

<body class="yui-skin-sam" onload="GW.OnLoad();" onunload="GW.OnUnload();" style="height:100%; margin:0;" > 

<!-- =================================================================== -->
<!-- Deal with Javascript not enabled ================================== -->
<!-- =================================================================== -->
<noscript>
  <b>JavaScript must be enabled in order for you to use GeoWiki.</b> 
  However, it seems JavaScript is either disabled or not supported by your browser. 
  To view GeoWiki, enable JavaScript by changing your browser options, and then 
  try again.
</noscript>

<!-- =================================================================== -->
<!-- beginning of the page content wrapper div ========================= -->
<!-- =================================================================== -->
<div id="idPageWrapper">

<!-- header: common page header and menus -->
<div id="idHeaderWrapper" >
<table class="noborder" id="idHD" >
    <tr style="height: 40px;" >
        <td id="idHDLogo" rowspan="2" >
            <a href="/"><img src="/static/img/logo2.png" ></a>
        </td>
        <td id="idHDTitle">great-loop.appspot.com - rev 3</td>
        <td id="idHDGreeting" rowspan="2" style="width: 15%">
            {% if user %}Logged in as: <br />
            {{ user.nickname }}
            {% else %}
            Not logged in
            {% endif %}
            <br /><br />
            <span style="font-size: .6em; font-weight: normal; color:blue; " > 
                &copy;2008 Richard J Bell ... All rights reserved
            </span>
        </td>
    </tr>
    <tr style="height: 40px;" >
        <td>
            <ul id="idHDMenu" class="navBar">
                <li id="idSiteHome" class="navButton"><a href="/wikiview/SiteHome" class="navNavLink"><img src="/static/img/home.png" /></a></li>
                <li id="idWikiList" class="navButton"><a href="/wikilist" class="navNavLink"><img src="/static/img/wikilist.png" /></a></li>
                <li id="idMapView" class="navButton"><a href="/mapview" class="navNavLink"><img src="/static/img/logo2.png" /></a></li>
                <li id="idOldMapView" class="navButton"><a href="/oldmapview" class="navNavLink"><img src="/static/img/logo2.png" />Old</a></li>
                <li id="idOldMapEdit" class="navButton"><a href="/oldmapedit" class="navNavLink"><img src="/static/img/logo2.png" />Old Edit</a></li>
                <li id="idOldMapKML" class="navButton"><a href="/oldmapkml" class="navNavLink"><img src="/static/img/logo2.png" />Old KML</a></li>
                <li id="idUserList" class="navButton"><a href="/userlist" class="navNavLink"><img src="/static/img/userlist.png" /></a></li>
                <li id="idLogin" class="navButton"><a href="{{ log_in_url }}" class="navNavLink"><img src="/static/img/login.png" /></a></li>
                <li id="idLogout" class="navButton"><a href="{{ log_out_url }}" class="navNavLink"><img src="/static/img/logout.png" /></a></li>
                <li id="idSiteHelp" class="navButton"><a href="/wikiview/SiteHelp" class="navNavLink"><img src="/static/img/help.png" /></a></li>
                <li id="idLogShowBTN" class="navButton"><a href="#" class="navNavLink"><img src="/static/img/logview.png" /></a></li>
                <li id="idTest" class="navButton"><a href="/test" class="navNavLink"><img src="/static/img/test.png" /></a></li>
            </ul>
        </td>
    </tr>
</table>
<script type="text/javascript">
    GW.MakeTT( 'idHDLogo', 'Hard coded home page for development' );
    GW.MakeTT( 'idSiteHome', 'Home' );
    GW.MakeTT( 'idWikiList', 'WikiList' );
    GW.MakeTT( 'idMapView', 'Map View' );
    GW.MakeTT( 'idOldMapView', 'Old Map View' );
    GW.MakeTT( 'idOldMapEdit', 'Old Map Edit' );
    GW.MakeTT( 'idOldMapKML', 'Old KML' );
    GW.MakeTT( 'idUserList', 'User List' );
    GW.MakeTT( 'idLogin', 'Login' );
    GW.MakeTT( 'idLogout', 'Logout' );
    GW.MakeTT( 'idSiteHelp', 'Help' );
    GW.MakeTT( 'idLogShowBTN', 'Show/Hide Log' );
    GW.MakeTT( 'idTest', 'Test Web2 Interface' );
</script>
</div>

<!-- bodyWrapper: common page header and menus -->
<div id="idBodyWrapper" >

<div id="idBodyButtons" >
    {% block BasePageMenu %}<!-- page buttons here -->{% endblock %}
</div>

<!-- fix me: button - title css broken -->
<div id="idBodyTitle">
    <span id="idBodyTitleExtra" >{% block BasePageTitleRight %}<!-- BasePageTitleRight -->{% endblock %}</span>
    <span id="idBodyTitleText" >{% block BasePageTitle %}<!-- BasePageTitle -->{% endblock %}</span>
</div>

<div id="idBody" >
    {% block BaseBody %}<!-- place holder for plain html pages -->{% endblock %}
</div>

</div>

<!-- =================================================================== -->
<!-- end of the page content wrapper div =============================== -->
<!-- =================================================================== -->
</div>
</body>
</html>
